//
//  AiRuleBean.swift
//  imprint
//
//  Created by 小柠檬🍋 on 2025/3/11.
//

import Foundation
//ai规则
class AiRuleBean : Codable,Identifiable {
    var aiRoleId:String? = nil
    var listAiRole: [AiReplyBean]? = nil //新版多人回复
    
    func getFirstRoleId() -> String? {
        if (!(listAiRole ?? []).isEmpty) {
            return listAiRole?[0].roleId
           }
           return aiRoleId
       }
    
}

//ai回复
class AiReplyBean : Codable,Identifiable {
    
    init(roleId: String? = nil) {
        self.roleId = roleId
    }
    var roleId: String? = nil
    var content: [String]? = nil
}
